#ifndef HW3_COMMON
#define HW3_COMMON

#include <cuda_runtime.h>

void safe(cudaError_t err, int lineNum) ;

double wall_clock() ;

void init(int *numCudaDevices, struct cudaDeviceProp *props, bool dispinfo) ;

void validateDimensions(dim3 dimGrid, dim3 dimBlock, int n) ;

void genData(float *matrix, int size) ;

void cpuMult(float *matrix, float *res, int n) ;

void printMatrix(float *matrix, int n) ;

float compare(float *matrix1, float *matrix2, int n) ;

#endif
